Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip ci] Miscellaneous scripting QoL improvements and fixes #2740

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

breadbyte
Copy link
Member

  • Changes the scripting error message from line numbers to presenting the actual line itself
  • Attempts to fix "NotRun" errors by modifying the CSharpException to expose the inner exception message. (the NotRun value is only used in code paths that use CSharpException, so it is modified here.)

Rather than just giving the line in which the error has been found, return the actual text content of the line itself
…n for any NotRun errors.

The exception message gets eaten up when the script is running, and an exception happens.

Also put in a default result message for the CmdResult, instead of having it default to null.
@breadbyte breadbyte merged commit 8756ff5 into MCCTeam:master Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant